<%--
  Created by IntelliJ IDEA.
  User: vili
  Date: 2018/12/1
  Time: 1:43 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<link rel="stylesheet" href="${ctx}/public/css/page.css">
<div class="divPage">
        <a class='btn btn-info'
           <c:if test="${p.pageNumber==1}">disabled</c:if>
           <c:if test="${p.pageNumber!=1}">href="${param.url}?pageNumber=1&name=${param.name}&typeOrAuthor=${param.typeOrAuthor}&conditionSort=${param.conditionSort}"</c:if>>
            首页
        </a>
        <a class='btn btn-info'
           <c:if test="${p.pageNumber==1}">disabled</c:if>
           <c:if test="${p.pageNumber!=1}">href="${param.url}?pageNumber=${p.pageNumber-1}&name=${param.name}&typeOrAuthor=${param.typeOrAuthor}&conditionSort=${param.conditionSort}"</c:if>>
            上一页
        </a>
        <h3 style='display:inline;'>[${p.pageNumber }/${p.totalPage}]</h3>
        <h3 style='display:inline;'>[${p.totalCount }]</h3>
        <a class='btn btn-info'
           <c:if test="${p.totalPage==0 || p.pageNumber==p.totalPage}">disabled</c:if>
           <c:if test="${p.pageNumber!=p.totalPage}">href="${param.url}?pageNumber=${p.pageNumber+1}&name=${param.name}&typeOrAuthor=${param.typeOrAuthor}&conditionSort=${param.conditionSort}"</c:if>>
            下一页
        </a>
        <a class='btn btn-info'
           <c:if test="${p.totalPage==0 || p.pageNumber==p.totalPage}">disabled</c:if>
           <c:if test="${p.pageNumber!=p.totalPage}">href="${param.url}?pageNumber=${p.totalPage}&name=${param.name}&typeOrAuthor=${param.typeOrAuthor}&conditionSort=${param.conditionSort}"</c:if>>
            尾页
        </a>
<%--        <input type='text' class='form-control' style='display:inline;width:60px;' value=''/>--%>
<%--        <a class='btn btn-info' href='javascript:void(0);'--%>
<%--           onclick='location.href="${param.url}?pageNumber="+(this.previousSibling.value)'>GO</a>--%>
</div>
